package org.lyh.base.query;

import lombok.Data;

@Data
public class BaseQuery {
    private String keyword;
    //当前页
    private Integer currentPage = 1;
    //每页显示的条数
    private Integer pageSize = 5;
    //计算当前页的起始下标：limit a-当前页的起始下标，b-查询多少页
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
